package optimizers.commons.evaluator;

import java.util.concurrent.Callable;
import model.OligoSystemComplex;

public class TimeSeriesCalculationTask implements Callable<Object> {

	private int index;
	private OligoSystemComplex oligoSystem;

	public TimeSeriesCalculationTask(int i, OligoSystemComplex oligoSystem) {
		this.index = i;
		this.oligoSystem = oligoSystem;
	}

	@Override
	public Object call() {
		double[][] result = oligoSystem.calculateTimeSeries(true);
		return new TimeSeriesCalculationResult(index, result);
	}
}
